<script>
    //1.拷贝对象
    let person1 = {"name":"lucy","age":20}

    let person2 = {...person1}
    // let person2 = person1

    console.log(person2)

    //对象合并
    let name = {name:'mary'}
    let age = {age:15}
    
    let person3 = {...name,...age}

    console.log(person3)
</script>